﻿/**
 * @author sminutoli
 */
import com.dinmax.flash.central.extension.state.*;
import com.dinmax.flash.central.extension.Extension;

class Calling extends Enabled {
	
	private var extension:Extension;
	private var name:String = CALLING;
	private var description:String = "calling";
	
	public function Calling(time:Date, extension:Extension){
		super(time);		
		//trace("new Calling() extension="+extension);
		//trace("extension id/number="+extension.getId());
		this.setExtension(extension);
	}	
	
	public function setExtension(extension:Extension):Void {
		this.extension = extension;
	};
	public function getExtension():Extension{
		return this.extension;
	};
	
	public function getDescription():String {
		return description+" to "+extension.getNumber();
	}
	public function isCalling():Boolean {
		return true;
	}; //fin funci	
	
}